package program;

import java.io.*; 

import java_cup.runtime.Symbol;


// leksicki analizator

public class MJLexer  {
	
	public static void main(String[] vpars) throws Exception{
		
		// apsolutna putanja do fajla
		java.io.FileReader rd = new java.io.FileReader("C:\\Users\\Denis\\workspace\\IR4PP1\\src\\program\\Test.txt");
		Yylex lexer = new Yylex(rd);
		Symbol token = lexer.next_token();
		while(token.sym!=sym.EOF){
			System.out.println(token.value + " " + token.sym);
			token = lexer.next_token();
		}
		System.out.println("Kraj");
		}
		
	}


